
package com.probiz.estore.eai.unit;

import com.probiz.estore.eai.common.GenericUnmarshaller;
import com.probiz.estore.eai.unit.generated.UnitSet;

public class UnitUnmarshaller extends
		GenericUnmarshaller<UnitSet> {
	
	@Override
	public void startUnmarshal() throws Exception {
		UnitSet unitSet = this.getEntitySet();
		//若未得到任何数据，不进行任何处理
		if(unitSet==null) return;
		UnitEaiHelper.getInstance().importData(unitSet.getUnit());
	}

	// @Override
	// protected String getTargetXmlFilePath(){
	// //得到eai.properties文件中相关的路径配置
	// return eaiUtil.getConfig( "inventoryClass.importXmlFile");
	// }

}
